package com.work.example.demo5.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.work.example.demo5.domain.BorrowEntity;
import com.work.example.demo5.domain.vo.BookEntityVo;
import com.work.example.demo5.domain.vo.BorrowEntityVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BorrowMapper  extends BaseMapper<BorrowEntity> {
    List<BorrowEntityVo> getByName(String username);

    String getByBorrow(Long borrowId);

    List<BorrowEntityVo> getallborrow();

    int deletebyId(Long id);

    int saveBorrow(BorrowEntity borrowEntity);

    Long getBorrowByName(String username);

    int updateborrow(BorrowEntity borrowEntity);
}
